
// 适配移动端
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) {
    // window.location.href = "https://civ.qq.com/act/a20220225yuyuem/index.html" + window.location.search;
}
//resize
(function (win, doc) {
    if (!win.addEventListener) return;
    var html = document.documentElement;

    function setFont() {
        var html = document.documentElement;
        var k = 1200;
        html.style.fontSize = (html.clientHeight - 42) / k * 100 + "px";
    }
    setFont();
    doc.addEventListener('DOMContentLoaded', setFont, false);
    win.addEventListener('resize', setFont, false);
    win.addEventListener('load', setFont, false);
})(window, document);
